import request from '../utils/request'

export const getSuggestions = q => {
  return request({
    method: "GET",
    url: "/v1_0/suggestion",
    params: {
      q //联想关键词
    }
  })
}

export const getSearchResult = params => {
  return request({
    method: "GET",
    url: '/v1_0/search',
    params
  })
}

export const getUserSearchRecords = () => {
  return request({
    method:'GET',
    url:'/v1_0/search/histories',
    
  })
}